/**
 * 
 */
package javapop.framework.generic;

import javapop.framework.generic.tool.GrammarVisitor;

/**
 * @author aliquando
 *
 */
public class GMeta implements GrammarTree {

	private String property;
	private String value;
	
	/**
	 * 
	 */
	public GMeta(String property,String value) {
		this.property = property;
		this.value = value;
	}

	
	public String getProperty() {
		return property;
	}
	
	public String getValue() {
		return value;
	}

	@Override
	public <T,R,E extends Exception> T visit(GrammarVisitor<T,R, E> g) throws E {
		return g.visit(this);
	}
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder("@meta(");
		sb.append(property);
		sb.append(",");
		sb.append(value);
		sb.append(");");
		return sb.toString();
	}

}
